<div class="app-modal valign-wrapper">
    <div class="container height100">
        <div class="row height100">
            <div class="col-md-6 col-md-offset-4 height100 valign-wrapper">
                <div class="modal-content" ng-show="!passmode && !checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="close()">
                            <span class="sr-only"><translate>Close modal</translate></span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <h2>{{'Add new contact'|translate}}</h2>
                        </div>
                        <div><translate>Please type in an account name or ID below.</translate></div>
                    </div>
                    <div class="modal-body">
                        <form ng-submit="passcheck()">
                            <div class="input-group app-addon">
                                <span class="input-group-addon search"></span>
                                <input ng-focus="focus == 'contact'" id="contact" type="text" class="form-control" placeholder="{{'Account name or ID'|translate}}" ng-model="contact">
                                <span class="input-group-addon clear" ng-click="contact='';"></span>
                            </div>
                            <span class="app-addon-error" ng-show="errorMessage && (rememberedPassphrase || presendError)">{{errorMessage}}</span>
                            <input type="submit" ng-show="false">
                        </form>
                    </div>
                    <div class="modal-body">
                        <span class="send-info-text flat-text"><translate>You shall receive notification when the contact has accepted your request.</translate></span>
                    </div>
                    <div class="modal-body">
                        <ul class="nav modal-buttons pull-right">
                            <li>
                                <a href="#" ng-click="close()"><translate>Cancel</translate></a>
                            </li>
                            <li>
                                <a href="#" class="blue-link" ng-click="passcheck()"><translate>add contact</translate></a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="modal-content" ng-show="passmode && !checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="close()">
                            <span class="sr-only"><translate>Close modal</translate></span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <h2>{{'Account Verification'|translate}}</h2>
                        </div>
                        <div><translate>Please enter your passphrase below.</translate></div>
                    </div>
                    <div class="modal-body">
                        <form ng-submit="addFolower(secretPhrase)">
                            <div class="field-padding">
                                <div class="input-field">
                                    <input ng-focus="focus == 'secretPhrase'" id="passPhrase" type="password" ng-model="secretPhrase" ng-trim="false" autofocus ng-class="{'invalid': errorMessage}">
                                    <label for="passPhrase"><translate>Your Passphrase</translate></label>
                                </div>
                                <span class="pass-error" ng-show="errorMessage">{{errorMessage}}</span>
                            </div>
                            <input type="submit" ng-show="false">
                        </form>
                    </div>
                    <div class="modal-body">
                        <ul class="nav modal-buttons pull-right">
                            <li>
                                <a href="#" ng-click="passcheck()"><translate>BACK</translate></a>
                            </li>
                            <li>
                                <a href="#" class="blue-link" ng-click="addFolower(secretPhrase)"><translate>add contact</translate></a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="modal-content" ng-show="checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="close()">
                            <span class="sr-only"><translate>Close modal</translate></span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <h2>{{'Account Verification'|translate}}</h2>
                        </div>
                        <div><translate>Please enter your second passphrase below.</translate></div>
                    </div>
                    <div class="modal-body">
                        <form ng-submit="addFolower(secretPhrase, true)">
                            <div class="field-padding">
                                <div class="input-field">
                                    <input ng-focus="focus == 'secondPhrase'" id="secondPhrase" type="password" ng-model="secondPhrase" ng-trim="false" autofocus ng-class="{'invalid': errorMessage}">
                                    <label for="secondPhrase"><translate>Your Second Passphrase</translate></label>
                                </div>
                                <span class="pass-error" ng-show="errorMessage">{{errorMessage}}</span>
                            </div>
                            <input type="submit" ng-show="false">
                        </form>
                    </div>
                    <div class="modal-body">
                        <ul class="nav modal-buttons pull-right">
                            <li>
                                <a href="#" ng-click="passcheck(true)"><translate>BACK</translate></a>
                            </li>
                            <li>
                                <a href="#" class="blue-link" ng-click="addFolower(secretPhrase, true)"><translate>add contact</translate></a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
